home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 2.toast / pc / technicalpublications / macosx / system / documentation / developer / cocoa / javatutorial / 3.javadebugging / javadebugging-14.gif < prev    next >
Graphics Interchange Format  |  2000-10-30  |  8.2 KB  |  415x349  |  8-bit (48 colors)
   ocr: Tempcontrolerjava /* TempController */ import com.apple.yellow.application.*, import com.apple.yellow. foundation.* public class TempController extends Java.lang.0bject i Slextrield celsius; NSTextField ranrennelt; TempImageView tempImage; // TemperatureView tempImage; public void convert(Nslextrielo sender) ( if (sender = celslus) i int f == (int)((9.0/5.0 * celslus.intValue() + 32): Tehrerheit.setintvalle(D): I else if (sender == fahrenheit) ( int C == ant)(Fahrenheat.intvalue(0-32) * 5.0/9.0); celsius.setintvalue(C); 3 tempImage.tempDidchange(fahrenheit.intvalue(): )